package com.itheima.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 预约设置
 */
public class OrderSetting implements Serializable{
    @ExcelIgnore//忽略这个属性，在读或者写时忽略该属性
    private Integer id ;

    //vaule对应的是列名，读的时候以列名为“日期”的列的数据封装到这个属性，可以不写index，数列对应起来麻烦
    //index是索引，写入到表中时，根据索引结合value，可以确定在第一列是哪个属性的值及列名，0索引对应第1列
    @ExcelProperty(value = "日期",index = 0)
    private Date orderDate;//预约设置日期

    @ExcelProperty(value = "可预约数量",index = 1)
    private int number;//可预约人数

    @ExcelProperty(value = "已预约数量",index = 2)
    private int reservations ;//已预约人数

    public OrderSetting() {
    }

    public OrderSetting(Date orderDate, int number) {
        this.orderDate = orderDate;
        this.number = number;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getReservations() {
        return reservations;
    }

    public void setReservations(int reservations) {
        this.reservations = reservations;
    }
}
